package com.cjw.util;


import org.springframework.messaging.handler.annotation.Payload;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

//@ConstraintComposition(CompositionType.OR)
//@Pattern(regexp = "1[3|5|6|7|8|9][0-9]\\d{8}")
//@Null
//@Length(min = 0, max = 0)
@Documented
//@Constraint(validatedBy = {})
@Target({METHOD, FIELD, CONSTRUCTOR, PARAMETER})
@Retention(RUNTIME)
//@ReportAsSingleViolation
public @interface Phone {
    String message() default "手机号格式错误";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
